package ucd.csi.comp30220.fall2011.oteop.airport;

import java.io.Serializable;
import ucd.csi.comp30220.fall2011.oteop.navigation.Position;

/**
 * Stores informations about airport.
 * 
 * @author David Harrison
 * @author Lukasz Jasinski
 */
public class AirportInfo implements Serializable {
    
    private static final long serialVersionUID = -6167651470746998087L;
    
    private String code;
    private Position position;
    private int runwayNum;
    
    /**
     * @param code IATA designation "DUB" for Dublin, "LHR" for Heathrow, etc.
     * @param position lat/lon of where the airport is
     */
    public AirportInfo(String code, Position position, int runwayNum) {
        this.code = code;
        this.position = position;
        this.runwayNum = runwayNum;
    }
    
    public String getCode() {
        return code;
    }
    
    public Position getPosition() {
        return position;
    }
    
    public int getRunwayNum() {
        return runwayNum;
    }
}
